home *** CD-ROM | disk | FTP | other *** search
/ The Ultimate Frank Lloyd…ght - America's Architect / Ultimate Frank Lloyd Wright, The - America's Architect (1994)(Microsoft Home).iso / pre / flw / flwsety.dir / 00449_Script_449 < prev    next >
Text File  |  1994-11-15  |  24KB  |  733 lines

  1. on startMovie
  2.   global lastMovie
  3.   global lastRoll,lastCast, dialogOn
  4.   global swapSpnum
  5.   
  6.   set dialogOn = FALSE
  7.   set lastMovie = "FLWSETY"
  8.   
  9.   set lastRoll = 0
  10.   set lastCast = 0
  11.   setPuppet TRUE
  12.   gSetPuppet
  13.   set the stretch of sprite 23 to FALSE
  14.   set the keyDownScript to "if dialogOn = TRUE then if the keyCode = 13 then closeDialog"
  15. end startMovie
  16.  
  17. on stepMovie
  18.   global nowFrame,currFrame
  19.   if nowFrame <> currFrame then
  20.     seeAlsoList
  21.     set currFrame = nowFrame
  22.   end if
  23. end stepMovie
  24.  
  25. on stopMovie
  26.   put " " into field "SeeAlsoText"
  27.   set the castNum of sprite 21 to 1050
  28.   puppetSprite 21, FALSE
  29.   updateStage`
  30. end stopMovie
  31.  
  32. on saveLocals
  33.   global lastFrame,nowFrame,lastMovie
  34.   --set lastMovie = "FLWSE"
  35.   set lastFrame = nowFrame 
  36. end saveLocals
  37.  
  38. on seForStep
  39.   global nowFrame
  40.   put the castNum of sprite 9 into cName
  41.   if chars(nowFrame,12,12) = "l" then 
  42.     gUnPuppet
  43.     go to frame "sephiint000°°°" of movie "FLWSEPH"
  44.   else if chars(nowFrame,6,8) = "int" then
  45.     gUnPuppet
  46.     puppetTransition 2,0,128
  47.     go to marker(+1)
  48.   else if cName = A28 then
  49.     if chars(nowFrame,1,14) = "setyptow005°°°" then
  50.       go to frame "sephiint000°°°" of movie "FLWSEPH"
  51.     else
  52.       puppetTransition 2,0,128
  53.       go to marker(+2) 
  54.     end if
  55.   else
  56.     puppetSprite 2, FALSE
  57.     puppetTransition 2,0,128
  58.     go to marker(+1)
  59.   end if
  60. end seForStep
  61.  
  62. on seBackStep
  63.   global nowFrame,jmpStep 
  64.   put the castNum of sprite 9 into cName
  65.   if chars(nowFrame,11,11) = "1" then
  66.     resetHit
  67.     updateStage
  68.   end if
  69.   if chars(nowFrame,6,8) = "int" then
  70.     gUnPuppet
  71.     go to frame "sematrei007°°°" of movie "FLWSEMA"
  72.   else
  73.     puppetTransition 1,0,128
  74.     go to marker(jmpStep) 
  75.   end if  
  76. end seBackStep
  77.  
  78. on gSetPuppet
  79.   repeat with i = 21 to 23
  80.     puppetSprite i, TRUE
  81.     set the immediate of sprite i to TRUE
  82.   end repeat
  83. end gSetPuppet
  84.  
  85. on mainRtn
  86.   global swapSpnum,rollFlag, dialogOn
  87.   if dialogOn = FALSE then
  88.     set rollFlag = FALSE
  89.     if rollOver(9) then
  90.       puppetSprite 9,TRUE
  91.       set the foreColor of sprite 9 to 230
  92.     else
  93.       set the foreColor of sprite 9 to 255  
  94.       puppetSprite 9,FALSE
  95.     end if
  96.     
  97.     menuRollOver()
  98.     if rollFlag = TRUE then
  99.       when  mouseDown then  isPress(swapSpnum)
  100.     else
  101.       when mouseDown then nothing
  102.     end if
  103.     --if the mouseH >= 340 and the mouseV > 450 then
  104.     buttonState
  105.     --end if
  106.   end if
  107. end mainRtn
  108.  
  109. on buttonState
  110.   global thumbTrack, thumbFrame, bflag, FrankNav, adjPerOn, noTx, dialogOn
  111.   
  112.   
  113.   if dialogOn = FALSE then
  114.     
  115.     --periodRoll
  116.     --periodCheck
  117.     
  118.     -- don't check global buttons unless mouse is down at bottom
  119.     if (the mouseV > 200) or (bFlag = TRUE) then
  120.       set bFlag = FALSE
  121.       doState
  122.     end if
  123.   else if dialogOn = TRUE then
  124.     if the mouseDown then 
  125.       if the mouseCast <> the number of cast "glossDialog" then
  126.         beep
  127.       end if
  128.     end if
  129.   end if
  130.   --if bflag = FALSE then set the castNum of sprite 23 to noTx
  131. end buttonState
  132.  
  133. on isrollPhil 
  134.   global phiint,org, tec, dem, uni, bal, ref, lig, tru
  135.   global nowroll
  136.   if (the mouseH >= item 1 of phiint and the mouseH <= item 2 of phiint)¼
  137.       and (the mouseV >= item 3 of phiint and the mouseV <= item 4 of phiint) then
  138.     set nowroll = "phiint"
  139.   else if (the mouseH >= item 1 of org and the mouseH <= item 2 of org)¼
  140.       and (the mouseV >= item 3 of org and the mouseV <= item 4 of org) then
  141.     set nowroll = "org"
  142.   else if (the mouseH >= item 1 of tec and the mouseH <= item 2 of tec)¼
  143.        and (the mouseV >= item 3 of tec and the mouseV <= item 4 of tec) then
  144.     set nowroll = "tec"
  145.   else if (the mouseH >= item 1 of dem and the mouseH <= item 2 of dem)¼
  146.        and (the mouseV >= item 3 of dem and the mouseV <= item 4 of dem) then
  147.     set nowroll = "dem"
  148.   else if (the mouseH >= item 1 of uni and the mouseH <= item 2 of uni)¼
  149.      and (the mouseV >= item 3 of uni and the mouseV <= item 4 of uni) then
  150.     set nowroll = "uni"
  151.   else if (the mouseH >= item 1 of bal and the mouseH <= item 2 of bal)¼
  152.      and (the mouseV >= item 3 of bal and the mouseV <= item 4 of bal) then
  153.     set nowroll = "bal"
  154.   else if  (the mouseH >= item 1 of ref and the mouseH <= item 2 of ref)¼
  155.      and ( the mouseV >= item 3 of ref and the mouseV <= item 4 of ref) then
  156.     set nowroll = "ref"
  157.   else if (the mouseH >= item 1 of lig and the mouseH <= item 2 of lig)¼
  158.      and (the mouseV >= item 3 of lig and the mouseV <= item 4 of lig) then
  159.     set nowroll = "lig"
  160.   else if (the mouseH >= item 1 of tru and the mouseH <= item 2 of tru)¼
  161.     and (the mouseV >= item 3 of tru and  the mouseV <= item 4 of tru) then
  162.     set nowroll = "tru"
  163.   else
  164.     set nowroll = ""
  165.   end if
  166.   updateStage
  167.   return nowroll
  168. end isrollPhil
  169.  
  170. on isrollSite 
  171.   global sitint,fla,hil, mou
  172.   global nowroll
  173.   if (the mouseH >= item 1 of sitint and the mouseH <= item 2 of sitint)¼
  174.       and (the mouseV >= item 3 of sitint and the mouseV <= item 4 of sitint) then
  175.     set nowroll = "sitint"
  176.   else if (the mouseH >= item 1 of fla and the mouseH <= item 2 of fla)¼
  177.       and (the mouseV >= item 3 of fla and the mouseV <= item 4 of fla) then
  178.     set nowroll = "fla"
  179.   else if (the mouseH >= item 1 of hil and the mouseH <= item 2 of hil)¼
  180.        and (the mouseV >= item 3 of hil and the mouseV <= item 4 of hil) then
  181.     set nowroll = "hil"
  182.   else if (the mouseH >= item 1 of mou and the mouseH <= item 2 of mou)¼
  183.        and (the mouseV >= item 3 of mou and the mouseV <= item 4 of mou) then
  184.     set nowroll = "mou"
  185.   else
  186.     set nowroll = "" 
  187.   end if
  188.   return nowroll
  189. end isrollSite
  190.  
  191. on isrollPatt 
  192.   global patint,geo, col,sou,mus,cul,nat
  193.   global nowroll
  194.   if (the mouseH >= item 1 of patint and the mouseH <= item 2 of patint)¼
  195.       and (the mouseV >= item 3 of patint and the mouseV <= item 4 of patint) then
  196.     set nowroll = "patint"
  197.   else if (the mouseH >= item 1 of geo and the mouseH <= item 2 of geo)¼
  198.       and (the mouseV >= item 3 of geo and the mouseV <= item 4 of geo) then
  199.     set nowroll = "geo"
  200.   else if (the mouseH >= item 1 of col and the mouseH <= item 2 of col)¼
  201.        and (the mouseV >= item 3 of col and the mouseV <= item 4 of col) then
  202.     set nowroll = "col"
  203.   else if (the mouseH >= item 1 of sou and the mouseH <= item 2 of sou)¼
  204.        and (the mouseV >= item 3 of sou and the mouseV <= item 4 of sou) then
  205.     set nowroll = "sou"
  206.   else if (the mouseH >= item 1 of mus and the mouseH <= item 2 of mus)¼
  207.      and (the mouseV >= item 3 of mus and the mouseV <= item 4 of mus) then
  208.     set nowroll = "mus"
  209.   else if (the mouseH >= item 1 of cul and the mouseH <= item 2 of cul)¼
  210.      and (the mouseV >= item 3 of cul and the mouseV <= item 4 of cul) then
  211.     set nowroll = "cul"
  212.   else if (the mouseH >= item 1 of nat and the mouseH <= item 2 of nat)¼
  213.      and (the mouseV >= item 3 of nat and the mouseV <= item 4 of nat) then
  214.     set nowroll = "nat"
  215.   else
  216.     set nowroll = ""   
  217.   end if
  218.   return nowroll
  219. end isrollPatt
  220.  
  221. on isrollMate
  222.   global matint,woo,sto,gla, bri,cop,con,rei
  223.   global nowroll
  224.   if (the mouseH >= item 1 of matint and the mouseH <= item 2 of matint)¼
  225.       and (the mouseV >= item 3 of matint and the mouseV <= item 4 of matint) then
  226.     set nowroll = "matint"
  227.   else if (the mouseH >= item 1 of woo and the mouseH <= item 2 of woo)¼
  228.       and (the mouseV >= item 3 of woo and the mouseV <= item 4 of woo) then
  229.     set nowroll = "woo"
  230.   else if (the mouseH >= item 1 of sto and the mouseH <= item 2 of sto)¼
  231.        and (the mouseV >= item 3 of sto and the mouseV <= item 4 of sto) then
  232.     set nowroll = "sto"
  233.   else if (the mouseH >= item 1 of gla and the mouseH <= item 2 of gla)¼
  234.        and (the mouseV >= item 3 of gla and the mouseV <= item 4 of gla) then
  235.     set nowroll = "gla"
  236.   else if (the mouseH >= item 1 of bri and the mouseH <= item 2 of bri)¼
  237.      and (the mouseV >= item 3 of bri and the mouseV <= item 4 of bri) then
  238.     set nowroll = "bri"
  239.   else if (the mouseH >= item 1 of cop and the mouseH <= item 2 of cop)¼
  240.      and (the mouseV >= item 3 of cop and the mouseV <= item 4 of cop) then
  241.     set nowroll = "cop"
  242.   else if (the mouseH >= item 1 of cop and the mouseH <= item 2 of con)¼
  243.      and (the mouseV >= item 3 of cop and the mouseV <= item 4 of con) then
  244.     set nowroll = "con"
  245.   else if (the mouseH >= item 1 of rei and the mouseH <= item 2 of rei)¼
  246.      and (the mouseV >= item 3 of rei and the mouseV <= item 4 of rei) then
  247.     set nowroll = "rei"
  248.   else
  249.     set nowroll = ""   
  250.   end if
  251.   return nowroll
  252. end isrollMate
  253.  
  254. on isrollType 
  255.   global typint,atr, hea, tow
  256.   global nowroll
  257.   if (the mouseH >= item 1 of typint and the mouseH <= item 2 of typint)¼
  258.       and (the mouseV >= item 3 of typint and the mouseV <= item 4 of typint) then
  259.     set nowroll = "typint"
  260.   else if (the mouseH >= item 1 of atr and the mouseH <= item 2 of atr)¼
  261.       and (the mouseV >= item 3 of atr and the mouseV <= item 4 of atr) then
  262.     set nowroll = "atr"
  263.   else if (the mouseH >= item 1 of hea and the mouseH <= item 2 of hea)¼
  264.        and (the mouseV >= item 3 of hea and the mouseV <= item 4 of hea) then
  265.     set nowroll = "hea"
  266.   else if (the mouseH >= item 1 of tow and the mouseH <= item 2 of tow)¼
  267.        and (the mouseV >= item 3 of tow and the mouseV <= item 4 of tow) then
  268.     set nowroll = "tow"
  269.   else
  270.     set nowroll = ""   
  271.   end if
  272.   return nowroll
  273. end isrollType
  274.  
  275. on locCheck spriteNum
  276.   global nowroll
  277.   if the mouseH >= 22 and the mouseH <= (22 + 97) then
  278.     set nowroll = isrollPhil()
  279.     isrollPhil()
  280.     philroll(nowroll,3)
  281.   else if the mouseH >= 142 and the mouseH <= (142 + 87) then
  282.     set nowroll = isrollSite()
  283.     siteroll(nowroll,3)
  284.   else if the mouseH >= 268 and the mouseH <= (268 + 94) then
  285.     set nowroll = isrollPatt()
  286.     pattroll(nowroll,3)
  287.   else if the mouseH >= 392 and the mouseH <= (392 + 92) then
  288.     set nowroll = isrollMate()
  289.     materoll(nowroll,3)
  290.   else if the mouseH >= 521 and the mouseH <= (521 + 70) then
  291.     set nowroll = isrollType()
  292.     typeroll(nowroll,3)
  293.   end if
  294. end locCheck
  295.  
  296. on philroll nowroll,spriteNum
  297.   global flashtimer,phiint
  298.   set flashtimer = FALSE
  299.   set cName = A88
  300.   set resetCname = A51
  301.   if nowroll = "phiint" then
  302.     set the castNum of sprite spriteNum to cName
  303.   else if nowroll = "org" then
  304.     set the castNum of sprite spriteNum to cName + 1
  305.   else if nowroll = "tec" then
  306.     set the castNum of sprite spriteNum to cName + 2
  307.   else if nowroll = "dem" then
  308.     set the castNum of sprite spriteNum to cName + 3
  309.   else if nowroll = "uni" then
  310.     set the castNum of sprite spriteNum to cName + 4
  311.   else if nowroll = "bal" then
  312.     set the castNum of sprite spriteNum to cName + 5
  313.   else if nowroll = "ref" then
  314.     set the castNum of sprite spriteNum to cName + 6
  315.   else if nowroll = "lig" then
  316.     set the castNum of sprite spriteNum to cName + 7
  317.   else if nowroll = "tru" then
  318.     set the castNum of sprite spriteNum to cName + 8
  319.   else
  320.     set the castNum of sprite spriteNum to resetCname
  321.     set flashtimer = TRUE 
  322.   end if
  323.   updateStage
  324.   
  325. end philroll
  326.  
  327. on siteroll nowroll,spriteNum
  328.   global flashtimer,sitint
  329.   set flashtimer = FALSE
  330.   set cName = B21
  331.   set resetCname = A51
  332.   if nowroll = "sitint" then
  333.     set the castNum of sprite spriteNum to cName
  334.   else if nowroll = "fla" then
  335.     set the castNum of sprite spriteNum to cName + 1
  336.   else if nowroll = "hil" then
  337.     set the castNum of sprite spriteNum to cName + 2
  338.   else if nowroll = "mou" then
  339.     set the castNum of sprite spriteNum to cName + 3
  340.   else
  341.     set the castNum of sprite spriteNum to resetCname
  342.     set flashtimer = TRUE
  343.   end if
  344.   updateStage
  345. end siteroll
  346.  
  347. on pattroll nowroll,spriteNum
  348.   global flashtimer,patint
  349.   set flashtimer = FALSE
  350.   set cName = B25
  351.   set resetCname = A51
  352.   if nowroll = "patint" then
  353.     set the castNum of sprite spriteNum to cName
  354.   else if nowroll = "geo" then
  355.     set the castNum of sprite spriteNum to cName + 1
  356.   else if nowroll = "col" then
  357.     set the castNum of sprite spriteNum to cName + 2
  358.   else if nowroll = "sou" then
  359.     set the castNum of sprite spriteNum to cName + 7
  360.   else if nowroll = "mus" then
  361.     set the castNum of sprite spriteNum to cName + 4
  362.   else if nowroll = "cul" then
  363.     set the castNum of sprite spriteNum to cName + 5
  364.   else if nowroll = "nat" then
  365.     set the castNum of sprite spriteNum to cName + 6
  366.   else
  367.     set the castNum of sprite spriteNum to resetCname
  368.     set flashtimer = TRUE
  369.   end if
  370. end pattroll
  371.  
  372. on materoll nowroll,spriteNum
  373.   global flashtimer,matint
  374.   set flashtimer = FALSE
  375.   set cName = B35
  376.   set resetCname = A51
  377.   if nowroll = "matint" then
  378.     set the castNum of sprite spriteNum to cName
  379.   else if nowroll = "woo" then
  380.     set the castNum of sprite spriteNum to cName + 1
  381.   else if nowroll = "sto" then
  382.     set the castNum of sprite spriteNum to cName + 2
  383.   else if nowroll = "gla" then
  384.     set the castNum of sprite spriteNum to cName + 3
  385.   else if nowroll = "bri" then
  386.     set the castNum of sprite spriteNum to cName + 4
  387.   else if nowroll = "cop" then
  388.     set the castNum of sprite spriteNum to cName + 5
  389.   else if nowroll = "con" then
  390.     set the castNum of sprite spriteNum to cName + 6
  391.   else if nowroll = "rei" then
  392.     set the castNum of sprite spriteNum to cName + 7
  393.   else
  394.     set the castNum of sprite spriteNum to resetCname
  395.     set flashtimer = TRUE
  396.   end if
  397.   updateStage
  398. end materoll
  399.  
  400. on typeroll nowroll,spriteNum
  401.   global flashtimer,typint
  402.   set flashtimer = FALSE
  403.   set cName = B45
  404.   set resetCname = A51
  405.   if nowroll = "typint" then
  406.     set the castNum of sprite spriteNum to cName
  407.   else if nowroll = "atr" then
  408.     set the castNum of sprite spriteNum to cName + 1
  409.   else if nowroll = "hea" then
  410.     set the castNum of sprite spriteNum to cName + 2
  411.   else if nowroll = "tow" then
  412.     set the castNum of sprite spriteNum to cName + 3
  413.   else
  414.     set the castNum of sprite spriteNum to resetCname
  415.     set flashtimer = TRUE
  416.   end if
  417.   updateStage
  418. end typeroll
  419.  
  420. on isPress spriteNum 
  421.   global nowFrame,rollFlag, nextMov, lastMovie
  422.   set restate  = A51
  423.   set buttonSucess = FALSE
  424.   set resetCastNo = A31
  425.   set nowPress = isrollPhil()
  426.   if nowPress = "phiint"  then
  427.     set buttonSucess = TRUE
  428.     put nowPress into clickasset
  429.     set nextMov = "FLWSEPH"
  430.   end if
  431.   if nowPress <> ""  and nowPress <> "phiint" then 
  432.     set the castNum of sprite spriteNum to the number of cast(nowPress & "dwn")
  433.     set resetSprite = 10
  434.     set resetCast = resetCastNo
  435.     put "phi" & nowPress  into clickasset
  436.     set nextMov = "FLWSEPH"
  437.     set buttonSucess = TRUE
  438.     
  439.     repeat while the stillDown
  440.       if isrollPhil() = nowPress then
  441.         put "phi" into secName
  442.         set the castNum of sprite spriteNum to the number of cast (nowPress & "dwn")
  443.         set resetSprite = 10
  444.         set resetCast = resetCastNo
  445.         put "phi" & nowPress  into clickasset
  446.         set buttonSucess = TRUE
  447.       else if isrollPhil() <> nowPress   then
  448.         set the ink of sprite spriteNum to 8
  449.         set the castNum of sprite spriteNum to  restate
  450.         set buttonSucess = FALSE
  451.       end if
  452.       updateStage
  453.     end repeat
  454.   end if
  455.   
  456.   set nowPress = isrollSite()
  457.   if nowPress = "sitint" then
  458.     set buttonSucess = TRUE
  459.     put nowPress into clickasset
  460.     set nextMov = "FLWSESI"
  461.   end if
  462.   if nowPress  <> "" and nowPress <> "sitint" then
  463.     set the castNum of sprite spriteNum to the number of cast(nowPress & "dwn")
  464.     set resetSprite = 11
  465.     set resetCast = resetCastNo + 1
  466.     put "sit" & nowPress  into clickasset
  467.     set nextMov = "FLWSESI"
  468.     set buttonSucess = TRUE
  469.     updateStage
  470.     repeat while the stillDown
  471.       if isrollSite() = nowPress then
  472.         set the castNum of sprite spriteNum to the number of cast (nowPress & "dwn")
  473.         set resetSprite = 11
  474.         set resetCast = resetCastNo + 1
  475.         put "sit" & nowPress  into clickasset
  476.         set buttonSucess = TRUE
  477.       else if isrollSite() <> nowPress  then
  478.         set the ink of sprite spriteNum to 8
  479.         set the castNum of sprite spriteNum to  restate
  480.         set buttonSucess = FALSE
  481.       end if
  482.       updateStage
  483.     end repeat
  484.   end if
  485.   
  486.   set nowPress = isrollPatt()
  487.   if nowPress = "patint"  then
  488.     set buttonSucess = TRUE
  489.     put nowPress into clickasset
  490.     set nextMov = "FLWSEPA"
  491.   end if
  492.   if nowPress  <> "" and nowPress <> "patint" then
  493.     set the castNum of sprite spriteNum to the number of cast(nowPress & "dwn")
  494.     set resetSprite = 12
  495.     set resetCast = resetCastNo + 2
  496.     put "pat" & nowPress  into clickasset
  497.     set nextMov = "FLWSEPA"
  498.     --    if nowPress = "sou" then
  499.     --      set buttonSucess to FALSE
  500.     --    else
  501.     set buttonSucess = TRUE
  502.     --    end if
  503.     updateStage
  504.     repeat while the stillDown
  505.       if isrollPatt() = nowPress then
  506.         set the castNum of sprite spriteNum to the number of cast (nowPress & "dwn")
  507.         set resetSprite = 12
  508.         set resetCast = resetCastNo + 2
  509.         put "pat" & nowPress  into clickasset
  510.         set buttonSucess = TRUE
  511.         --        if nowPress = "sou" then
  512.         --          set buttonSucess to FALSE
  513.         --        end if
  514.       else if isrollPatt() <> nowPress then
  515.         set the ink of sprite spriteNum to 8
  516.         set the castNum of sprite spriteNum to  restate
  517.         set buttonSucess = FALSE
  518.       end if
  519.       updateStage
  520.     end repeat
  521.   end if
  522.   
  523.   set nowPress = isrollMate()
  524.   if nowPress = "matint"  then
  525.     set buttonSucess = TRUE
  526.     put nowPress into clickasset
  527.     set nextMov = "FLWSEMA"
  528.   end if
  529.   if nowPress <> "" and nowPress <> "matint" then
  530.     set the castNum of sprite spriteNum to the number of cast(nowPress & "dwn")
  531.     set resetSprite = 13
  532.     set resetCast = resetCastNo + 3
  533.     put "mat" & nowPress  into clickasset
  534.     set nextMov = "FLWSEMA"
  535.     set buttonSucess = TRUE
  536.     updateStage
  537.     repeat while the stillDown
  538.       if isrollMate() = nowPress then
  539.         set the castNum of sprite spriteNum to the number of cast (nowPress & "dwn")
  540.         set resetSprite = 13
  541.         set resetCast = resetCastNo + 3
  542.         put "mat" & nowPress  into clickasset
  543.         set buttonSucess = TRUE
  544.       else if isrollMate() <> nowPress  then
  545.         set the ink of sprite spriteNum to 8
  546.         set the castNum of sprite spriteNum to  restate
  547.         set buttonSucess = FALSE
  548.       end if
  549.       updateStage
  550.     end repeat
  551.   end if
  552.   
  553.   set nowPress = isrollType()
  554.   if nowPress = "typint" then
  555.     set buttonSucess = TRUE
  556.     put nowPress into clickasset
  557.     set nextMov = "FLWSETY"
  558.   end if
  559.   if nowPress  <> "" and nowPress <> "typint" then
  560.     set the castNum of sprite spriteNum to the number of cast(nowPress & "dwn")
  561.     set resetSprite = 14
  562.     set resetCast = resetCastNo + 4
  563.     put "typ" & nowPress  into clickasset
  564.     set nextMov = "FLWSETY"
  565.     set buttonSucess = TRUE
  566.     updateStage
  567.     repeat while the stillDown
  568.       if isrollType() = nowPress then
  569.         set the castNum of sprite spriteNum to the number of cast (nowPress & "dwn")
  570.         set resetSprite = 14
  571.         set resetCast = resetCastNo + 4
  572.         put "typ" & nowPress  into clickasset
  573.         set buttonSucess = TRUE
  574.       else if isrollType() <> nowPress  then
  575.         set the ink of sprite spriteNum to 8
  576.         set the castNum of sprite spriteNum to  restate
  577.         set buttonSucess = FALSE
  578.       end if
  579.       updateStage
  580.     end repeat
  581.   end if
  582.   
  583.   if buttonSucess = TRUE then
  584.     set the ink of sprite spriteNum to 8
  585.     if spriteNum = 3 then
  586.       set the castNum of sprite spriteNum to restate
  587.       updateStage
  588.       puppetSprite spriteNum, FALSE
  589.     else
  590.       put the timer + 10 into time
  591.       set the castNum of sprite spriteNum to restate
  592.       updateStage
  593.       repeat while the timer < time
  594.       end repeat
  595.       puppetSprite spriteNum,FALSE
  596.     end if
  597.     
  598.     if clickasset = "patsou" then
  599.       set clickasset = "patmus"
  600.     end if
  601.     
  602.     put "se" & clickasset & "000°°°" into jmpFrame
  603.     if chars(nowFrame,3,5) <> "mai" then resetHit
  604.     set rollFlag = FALSE
  605.     set the ink of sprite spriteNum to 8
  606.     puppetSprite 2, FALSE
  607.     puppetSprite 4, FALSE
  608.     puppetSprite 5, FALSE
  609.     
  610.     if chars(clickasset,1,2)=chars(lastMovie,6,7) then
  611.       go to frame jmpFrame
  612.       flush
  613.     else
  614.       go to frame jmpFrame of movie nextMov
  615.       flush
  616.     end if
  617.   end if
  618. end isPress
  619.  
  620. on setPuppet state
  621.   repeat with i = 10 to 15
  622.     puppetSprite i, state
  623.     set the immediate of sprite i to state
  624.   end repeat
  625. end setPuppet
  626.  
  627. on menuRollOver 
  628.   global lastRoll,lastCast,nowFrame,rollFlag
  629.   set resetState = A51
  630.   set cName = A41
  631.   set lCname = A22
  632.   set currHit = A31
  633.   put chars(nowFrame,3,5) into currSec
  634.   
  635.   set rollFlag = FALSE
  636.   
  637.   if currSec = "phi" then
  638.     set the castNum of sprite 10 to currHit
  639.   else if currSec = "sit" then
  640.     set the castNum of sprite 11 to currHit + 1
  641.   else if currSec = "pat" then
  642.     set the castNum of sprite 12 to currHit + 2
  643.   else if currSec = "mat" then
  644.     set the castNum of sprite 13 to currHit + 3
  645.   else if currSec = "typ" then
  646.     set the castNum of sprite 14 to currHit + 4
  647.   end if
  648.   
  649.   if rollOver(10) then
  650.     set rollFlag = TRUE
  651.     if lastRoll <> 0 and lastRoll <> 10  then
  652.       set the castNum of sprite lastRoll to lastCast
  653.     end if
  654.     set the castNum of  sprite 10 to cName
  655.     set lastRoll = 10
  656.     set lastCast = lCname
  657.     set nowroll = isrollPhil()
  658.     philroll(nowroll,15)
  659.   else if rollOver(11) then
  660.     set rollFlag = TRUE
  661.     if lastRoll <> 0 and lastRoll <> 11  then
  662.       set the castNum of sprite lastRoll to lastCast
  663.     end if
  664.     set the castNum of  sprite 11 to cName + 1
  665.     set lastRoll = 11
  666.     set lastCast = lCname + 1
  667.     set nowroll = isrollSite()
  668.     siteroll(nowroll,15)
  669.   else if rollOver(12) then
  670.     set rollFlag = TRUE
  671.     if lastRoll <> 0 and lastRoll <> 12 then
  672.       set the castNum of sprite lastRoll to  lastCast
  673.     end if
  674.     set the castNum of  sprite 12 to cName + 2
  675.     set lastRoll = 12
  676.     set lastCast = lCname + 2
  677.     set nowroll = isrollPatt()
  678.     pattroll(nowroll,15)
  679.   else if rollOver(13) then
  680.     set rollFlag = TRUE
  681.     if lastRoll <> 0 and lastRoll <> 13 then
  682.       set the castNum of sprite lastRoll to  lastCast
  683.     end if
  684.     set the castNum of  sprite 13 to cName + 3
  685.     set lastRoll = 13 
  686.     set lastCast = lCname + 3
  687.     set nowroll = isrollMate()
  688.     materoll(nowroll,15)
  689.   else if rollOver(14) then
  690.     set rollFlag = TRUE
  691.     if lastRoll <> 0 and lastRoll <> 14 then
  692.       set the castNum of sprite lastRoll to  lastCast
  693.     end if
  694.     set the castNum of sprite 14 to cName + 4 
  695.     set lastRoll = 14
  696.     set lastCast = lCname + 4
  697.     set nowroll = isrollType()
  698.     Typeroll(nowroll,15)
  699.   else 
  700.     set rollFlag = FALSE 
  701.     set the castNum of sprite lastRoll to lastCast
  702.     set the castNum of sprite 15 to  resetState
  703.     if currSec = "phi" then
  704.       set the castNum of sprite 10 to currHit
  705.     else if currSec = "sit" then
  706.       set the castNum of sprite 11 to currHit + 1
  707.     else if currSec = "pat" then
  708.       set the castNum of sprite 12 to currHit + 2
  709.     else if currSec = "mat" then
  710.       set the castNum of sprite 13 to currHit + 3
  711.     else if currSec = "typ" then
  712.       set the castNum of sprite 14 to currHit + 4
  713.     end if 
  714.   end if
  715.   updateStage
  716.   return rollFlag
  717. end menuRollOver
  718.  
  719. on resetHit
  720.   set hitSp = A22
  721.   repeat with i = 0 to 4 
  722.     set the castNum of sprite (i+10) to (hitSp + i)
  723.     updateStage
  724.   end repeat
  725. end resetHit
  726.  
  727. on gUnPuppet
  728.   setPuppet FALSE  
  729. end gUnpuppet
  730.  
  731.  
  732.  
  733.